/*
 * ChannelServer.cpp
 *
 *  Created on: 2014. 7. 17.
 *      Author: mega
 */

#include "../ChannelServer.h"

namespace GuildServer {

static int s_key = 10;

template <class T>
T* Single()
{
	static T t;
	return &t;
}

ChannelServer::ChannelServer()
{
	SetState(Single<InitState>());

	m_nChannelKey = ++s_key;
}

ChannelServer::~ChannelServer()
{

}

uint32_t
ChannelServer::GetChannelKey()
{
	return m_nChannelKey;
}

} /*GuildServer*/
